<template>
  <!-- <div class="article-container">文章详情</div> 通过文章id来渲染 -->
  <div class="article-container">{{$route.params.artId}}</div>
</template>

<script>
import { getArticleDetale } from '@/api/article.js'
export default {
  name: 'ArticleIndex',
  components: {},
  data () {
    return {}
  },
  computed: {},
  watch: {},
  created () {
    this.loadArticleDetail()
  },
  mounted () {},
  methods: {
    async loadArticleDetail () {
      const res = await getArticleDetale(this.artId)
      console.log(res)
    }
  }
}
</script>

<style scoped lang="less"></style>
